//
//  TransformButton.h
//  
//
//  Created by Zhenglinqin on 14-7-15.
//  Copyright (c) 2014年  Binglin All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^TouchUpInsideBlock) (id sender);

@interface TransformButton : UIButton

/**
 *   YES 正常图片
 *   NO  翻转180度
 */
@property (nonatomic, assign) BOOL normal;

/**
 *  旋转的幅度 默认为M_1_PI
 */
@property (nonatomic, assign) CGFloat radius;

@property (nonatomic, assign) CGFloat transformTime;

/**
 *  touch up inside 事件
 */
@property (nonatomic, assign) TouchUpInsideBlock insideblock;


///**
// *  回复button初始图片方向
// */
- (void)resetButton;


/**
 *  YES翻转 NO还原
 */
- (void)doRotate:(BOOL)rotate;

- (UIView *)transformView;

@end




@interface ArrowButton : TransformButton

- (instancetype)initWithTitle:(NSString *)title ArrowImage:(UIImage *)image;
@property (nonatomic, readonly) UIImageView *arrowImageView;

@end
